// vim:set tabstop=4 shiftwidth=4 softtabstop=4 expandtab foldcolumn=1 foldmethod=marker:
/**
 * Project:     LteERP
 * File:        src/sql/CheckPrivateSQL.java
 *
 * SQL Privoder
 *
 *  @package:   com.m5anet.sql
 *  @author:    Mike.G  (hylinux@gmail.com)
 *  @license:   http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1 
 *  @copyright: http://www.5anet.com
 *
 */
package com.m5anet.sql;

import java.util.ResourceBundle;

public class GenerateSQL {
    public ResourceBundle bundle = null;

    /**
     * @name:   GenerateSQL
     * @parameter:   String key
     * @return:     null
     */
    public GenerateSQL(String key ) {
        try {
            bundle = ResourceBundle.getBundle(key);
        } catch ( Exception ex ) {
            bundle = null;
        }
    }

    /**
     * return the sql Statement
     * @name:   getSQL
     * @parameter:  String key 
     * @acess:  public
     * @return: String
     */
    public String getSQL(String key ) {

        String sql = null;
        try {
            sql = bundle.getString(key);
        } catch ( Exception ex ) {
            sql = "";
        }

        return sql;
    }




}




